<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/include/commonTaglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="${ctx}/static/css/table.css">
<title>表格生成工具测试</title>
<script>
$(function(){
	$.ajax({
		url:'${ctx}/getTableString',
	    type:'POST',
	    success:function(data){
	    	$("#table").append(data);
	    	$("#test").addClass("layui-table");
	    	$("#test").attr("border","1px");
	    },
	    error:function(){
	    	console.log("获得数据失败！")
	    }
	});
})
</script>

</head>
<body>
  <div id="table"></div>
</body>
</html>